<?php
class HotelInfo extends MY_Controller {
	
	
	function HotelInfo() {
		parent::__construct();
		
		if ($this->ion_auth->is_group("hotel")) {
			
			$this->load->helpers(array('html'));
			
			$this->load->library(array('ion_auth'));
			
			$this->load->model('Hotel_model');
		}
		else {
			redirect('Login/index');
		}
	}
	
	
	
	function emailExists() {
		
	}
	
	function tmp() {
		
		$true				= '{"exists":true,	"msg":"Este cliente ja existe na  BD"}';
		$false				= '{"exists":false,	"msg":""}';
	
		//$email = 'client1h3@mail.com';
		$email = $_GET['email'];
		
		$result = array();
		$result = $this->db->select('email')->from('client')->where('email',$email)->get()->row();
		//$this->firephp->log($result);
	
		if (empty($result))
			echo $false;
		else
			echo $true;
		
		return;
	}
}